package com.java.clients;

import com.java.param.PageParam;
import com.java.param.ProductIdRemoveParam;
import com.java.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("order-service")
public interface OrderClient {

    @PostMapping("/order/product/check")
    R check(@RequestBody @Validated ProductIdRemoveParam productIdRemoveParam);

    @PostMapping("/order/admin/list")
    R adminList(@RequestBody PageParam pageParam);
}
